package com.xiangshizhineng.tianzhangzhi.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiangshizhineng.tianzhangzhi.app.common.base.BaseDAO;
import com.xiangshizhineng.tianzhangzhi.app.model.entity.Notice;
import com.xiangshizhineng.tianzhangzhi.app.model.entity.TzMes;
import com.xiangshizhineng.tianzhangzhi.app.model.response.NoticeResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface NoticeDAO extends BaseMapper<NoticeResponse>,BaseDAO<NoticeResponse> {
    /**
     * 有效期内所有公告
     * */
    List<NoticeResponse> allNotice();

    /**
     * 公告详情
     * */
    NoticeResponse noticeDetails(Long id);


    /**
     * 公告轮播图
     * @param
     * @return
     */
    List<NoticeResponse> tNEPics();

    /**
     *查询公告最大id
     */
    int maxId();

}
